﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OF.Component.DTO;

namespace OF.Component.IDAL
{
    /// <summary>
    /// 动态查询通用接口
    /// </summary>
    interface IPost
    {
        /// <summary>
        /// 热门动态查询
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IList<PostDetailDto> SearchHotList(scPost condition, out int total);
        /// <summary>
        /// 动态查询，按搜索条件
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IList<PostDetailDto> SearchListByCondition(scPostCondition condition, out int total);
    }
}
